package com.wanmait.shoppingsys.controller.manage;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.wanmait.shoppingsys.dao.SpecialtyDAO;
import com.wanmait.shoppingsys.vo.Specialty;


@WebServlet("/SpecialtyShowAllController")
public class SpecialtyShowAllController extends HttpServlet{

	private SpecialtyDAO specialtyDAO=SpecialtyDAO.getDAO();

	@Override
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		List<Specialty> specialtys = specialtyDAO.findAllM();
		request.setAttribute("specialtys",specialtys);
	}
	@Override
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		doGet(request, response);
	}
}
